<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLifeProductsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('life_product', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamps();

			//varchar 255 产品名称
			$table->string('name');
			//double 产品价格
			$table->double('price',13,2);
			//varchar 255 产品图片名称
			$table->string('image_name');
			//产品详细介绍
			$table->text("content");

			$table->softDeletes();

		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('life_products');
	}

}
